"""while"""
# i=0
# while i<100:
#     print("面试")
#     i+=1

"""for"""
# name="dasdaf"
# for x in name:
#     print(x)

"""range"""
# for x in range(5):
#     print(x)
# for x in range(1,10):
#     print(x)
# for x in range(1,10,2):
#     print(x)

"""变量作用域"""
# i=0
# for i in range(5):
#     print(i)
# print(i)

"""for嵌套,表白100天，每天送10朵玫瑰"""
# x=0
# for x in range(1,101):
#         print(f"今天是表白的第{x}天")
#         for i in range(1,11):
#                 print(f"送第{i}朵玫瑰花")
# print(f"今天是第{x}天，表白成功")

"""continue"""
# for x in range(1,10):
#     print("1")
#     continue
#     print("2")

# for x in range(1,5):
#     print("1")
#     for y in range(1,5):
#         print("2")
#         continue
#         print("3")
#     print("4")
"""break"""
# for x in range(1,10):
#     print("1")
#     break
#     print("2")
# print("3")

for x in range(1,3):
    print("1")
    for y in range(1,3):
        print("2")
        break
        print("3")
    print("4")